import { defineConfig } from "umi";
import routes from "../src/routes";

export default defineConfig({
  // 注册所需插件
  plugins: [
    "@umijs/plugins/dist/qiankun",
    "@umijs/plugins/dist/initial-state",
    "@umijs/plugins/dist/model",
    "@umijs/plugins/dist/locale",
  ],
  routes,
  npmClient: "yarn",
  // 启用插件
  model: {},
  initialState: {},
  // 开启主应用乾坤配置
  qiankun: {
    master: {},
  },
  // 将主/子应用公共的依赖进行复用，子应用构建时不打包到dist中
  headScripts: []
});